package com.jnshu.dto.message;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * @author xmp
 * @date 2019/8/6 17:27
 * 后台消息的新增和编辑
 */
@Data
public class MessageVo {
    private Long id;

    @NotEmpty(message = "公告内容不能为空")
    @Size(min = 1,max = 300,message = "公告内容限制300字")
    private String content;

    private String url;

    @NotEmpty(message = "公告标题不能为空")
    @Size(min = 1,max = 20,message = "公告标题限制20字")
    private String title;

    private Integer status;

    private Integer messageType;

    private Integer pushType;

    private Integer object;

    private Long pushTime;
}
